home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 1 / PC Actual CD 01.iso / share / dos / graficos / plydat14.arj / SINSPH.PI < prev    next >
Encoding:
Text File  |  1991-12-26  |  859 b   |  47 lines

  1. define picture_res 80
  2.  
  3. viewpoint {
  4.    from <0, 0, -10>
  5.    at <0,0,0>
  6.    up <0,1,0>
  7.    angle 30
  8.    aspect 2
  9.    resolution 2*picture_res, picture_res
  10.    }
  11.  
  12. file_flush picture_res
  13. background <0, 0, 0>
  14. light <-10,3, -20>
  15. define red <1,0,0>
  16. define white <1,1,1>
  17.  
  18. define sin_color_offset (sin(3.14 * fmod(x*y*z, 1)) + 1) / 2
  19. define sin_color <sin_color_offset, 0, 1 - sin_color_offset>
  20. define xyz_sin_texture
  21. texture {
  22.    special surface {
  23.       color sin_color
  24.       ambient 0.2
  25.       diffuse 0.8
  26.       specular white, 0.5
  27.       microfacet Reitz 10
  28.       }
  29.    }
  30.  
  31. object {
  32.    polynomial x^2 + y^2 + z^2 - 1
  33.    xyz_sin_texture
  34.    translate <-2.5, 0, 0>
  35.    }
  36.  
  37. object {
  38.    polynomial x^2 + y^2 + z^2 - 1
  39.    xyz_sin_texture
  40.    }
  41.  
  42. object {
  43.    polynomial x^2 + y^2 + z^2 - 1
  44.    xyz_sin_texture
  45.    translate < 2.5, 0, 0>
  46.    }
  47.